package com.bojiu.lawsearch.lawsearch.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel(value = "分页详情")
public class Page<T> implements Serializable {

    @ApiModelProperty(value = "当前页数")
    private long pagenum; // 当前页数

    @ApiModelProperty(value = "每个个数")
    private long pagesize; // 每页大小

    @ApiModelProperty(value = "总页数")
    private long totalPage; // 总页数

    @ApiModelProperty(value = "总条数")
    private long totalcount; // 总条数

    @ApiModelProperty(value = "返回详情")
    private List<T> contents;

}
